namespace VAdvantage.Model
{

/** Generated Model - DO NOT CHANGE */
using System;
using System.Text;
using VAdvantage.DataBase;
using VAdvantage.Common;
using VAdvantage.Classes;
using VAdvantage.Process; using VAdvantage.ProcessEngine;
using VAdvantage.Model;
using VAdvantage.Utility;
using System.Data;
/** Generated Model for AD_SmsConfiguration
 *  @author Jagmohan Bhatt (generated) 
 *  @version Vienna Framework 1.1.1 - $Id$ */
public class X_AD_SmsConfiguration : PO
{
public X_AD_SmsConfiguration (Context ctx, int AD_SmsConfiguration_ID, String trxName) : base (ctx, AD_SmsConfiguration_ID, trxName)
{
/** if (AD_SmsConfiguration_ID == 0)
{
SetAD_SmsConfiguration_ID (0);
}
 */
}
public X_AD_SmsConfiguration (Ctx ctx, int AD_SmsConfiguration_ID, String trxName) : base (ctx, AD_SmsConfiguration_ID, trxName)
{
/** if (AD_SmsConfiguration_ID == 0)
{
SetAD_SmsConfiguration_ID (0);
}
 */
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_AD_SmsConfiguration (Context ctx, DataRow rs, String trxName) : base(ctx, rs, trxName)
{
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_AD_SmsConfiguration (Ctx ctx, DataRow rs, String trxName) : base(ctx, rs, trxName)
{
}
/** Load Constructor 
@param ctx context
@param rs result set 
@param trxName transaction
*/
public X_AD_SmsConfiguration (Ctx ctx, IDataReader dr, String trxName) : base(ctx, dr, trxName)
{
}
/** Static Constructor 
 Set Table ID By Table Name
 added by ->Harwinder */
static X_AD_SmsConfiguration()
{
 Table_ID = Get_Table_ID(Table_Name);
 model = new KeyNamePair(Table_ID,Table_Name);
}
/** Serial Version No */
static long serialVersionUID = 27562514364179L;
/** Last Updated Timestamp 7/29/2010 1:07:27 PM */
public static long updatedMS = 1280389047390L;
/** AD_Table_ID=1000002 */
public static int Table_ID;
 // =1000002;

/** TableName=AD_SmsConfiguration */
public static String Table_Name="AD_SmsConfiguration";

protected static KeyNamePair model;
protected Decimal accessLevel = new Decimal(7);
/** AccessLevel
@return 7 - System - Client - Org 
*/
protected override int Get_AccessLevel()
{
return Convert.ToInt32(accessLevel.ToString());
}
/** Load Meta Data
@param ctx context
@return PO Info
*/
protected override POInfo InitPO (Context ctx)
{
POInfo poi = POInfo.GetPOInfo (ctx, Table_ID);
return poi;
}
/** Load Meta Data
@param ctx context
@return PO Info
*/
protected override POInfo InitPO (Ctx ctx)
{
POInfo poi = POInfo.GetPOInfo (ctx, Table_ID);
return poi;
}
/** Info
@return info
*/
public override String ToString()
{
StringBuilder sb = new StringBuilder ("X_AD_SmsConfiguration[").Append(Get_ID()).Append("]");
return sb.ToString();
}
/** Set AD_SmsConfiguration_ID.
@param AD_SmsConfiguration_ID AD_SmsConfiguration_ID */
public void SetAD_SmsConfiguration_ID (int AD_SmsConfiguration_ID)
{
if (AD_SmsConfiguration_ID < 1) throw new ArgumentException ("AD_SmsConfiguration_ID is mandatory.");
Set_ValueNoCheck ("AD_SmsConfiguration_ID", AD_SmsConfiguration_ID);
}
/** Get AD_SmsConfiguration_ID.
@return AD_SmsConfiguration_ID */
public int GetAD_SmsConfiguration_ID() 
{
Object ii = Get_Value("AD_SmsConfiguration_ID");
if (ii == null) return 0;
return Convert.ToInt32(ii);
}
/** Set MessageKeyWord.
@param MessageKeyWord MessageKeyWord */
public void SetMessageKeyWord (String MessageKeyWord)
{
if (MessageKeyWord != null && MessageKeyWord.Length > 50)
{
log.Warning("Length > 50 - truncated");
MessageKeyWord = MessageKeyWord.Substring(0,50);
}
Set_Value ("MessageKeyWord", MessageKeyWord);
}
/** Get MessageKeyWord.
@return MessageKeyWord */
public String GetMessageKeyWord() 
{
return (String)Get_Value("MessageKeyWord");
}
/** Set MobileNumberKeyWord.
@param MobileNumberKeyWord MobileNumberKeyWord */
public void SetMobileNumberKeyWord (String MobileNumberKeyWord)
{
if (MobileNumberKeyWord != null && MobileNumberKeyWord.Length > 50)
{
log.Warning("Length > 50 - truncated");
MobileNumberKeyWord = MobileNumberKeyWord.Substring(0,50);
}
Set_Value ("MobileNumberKeyWord", MobileNumberKeyWord);
}
/** Get MobileNumberKeyWord.
@return MobileNumberKeyWord */
public String GetMobileNumberKeyWord() 
{
return (String)Get_Value("MobileNumberKeyWord");
}
/** Set PassWordKeyWord.
@param PassWordKeyWord PassWordKeyWord */
public void SetPassWordKeyWord (String PassWordKeyWord)
{
if (PassWordKeyWord != null && PassWordKeyWord.Length > 50)
{
log.Warning("Length > 50 - truncated");
PassWordKeyWord = PassWordKeyWord.Substring(0,50);
}
Set_Value ("PassWordKeyWord", PassWordKeyWord);
}
/** Get PassWordKeyWord.
@return PassWordKeyWord */
public String GetPassWordKeyWord() 
{
return (String)Get_Value("PassWordKeyWord");
}
/** Set Password.
@param Password Password of any length (case sensitive) */
public void SetPassword (String Password)
{
if (Password != null && Password.Length > 50)
{
log.Warning("Length > 50 - truncated");
Password = Password.Substring(0,50);
}
Set_Value ("Password", Password);
}
/** Get Password.
@return Password of any length (case sensitive) */
public String GetPassword() 
{
return (String)Get_Value("Password");
}
/** Set PriorityKeyWord.
@param PriorityKeyWord PriorityKeyWord */
public void SetPriorityKeyWord (String PriorityKeyWord)
{
if (PriorityKeyWord != null && PriorityKeyWord.Length > 50)
{
log.Warning("Length > 50 - truncated");
PriorityKeyWord = PriorityKeyWord.Substring(0,50);
}
Set_Value ("PriorityKeyWord", PriorityKeyWord);
}
/** Get PriorityKeyWord.
@return PriorityKeyWord */
public String GetPriorityKeyWord() 
{
return (String)Get_Value("PriorityKeyWord");
}
/** Set PriorityValue.
@param PriorityValue PriorityValue */
public void SetPriorityValue (String PriorityValue)
{
if (PriorityValue != null && PriorityValue.Length > 50)
{
log.Warning("Length > 50 - truncated");
PriorityValue = PriorityValue.Substring(0,50);
}
Set_Value ("PriorityValue", PriorityValue);
}
/** Get PriorityValue.
@return PriorityValue */
public String GetPriorityValue() 
{
return (String)Get_Value("PriorityValue");
}
/** Set Sender.
@param Sender Sender */
public void SetSender (String Sender)
{
if (Sender != null && Sender.Length > 50)
{
log.Warning("Length > 50 - truncated");
Sender = Sender.Substring(0,50);
}
Set_Value ("Sender", Sender);
}
/** Get Sender.
@return Sender */
public String GetSender() 
{
return (String)Get_Value("Sender");
}
/** Set SenderKeyWord.
@param SenderKeyWord SenderKeyWord */
public void SetSenderKeyWord (String SenderKeyWord)
{
if (SenderKeyWord != null && SenderKeyWord.Length > 50)
{
log.Warning("Length > 50 - truncated");
SenderKeyWord = SenderKeyWord.Substring(0,50);
}
Set_Value ("SenderKeyWord", SenderKeyWord);
}
/** Get SenderKeyWord.
@return SenderKeyWord */
public String GetSenderKeyWord() 
{
return (String)Get_Value("SenderKeyWord");
}
/** Set URL.
@param URL Full URL address - e.g. http://www.viennaadvantage.com */
public void SetURL (String URL)
{
if (URL != null && URL.Length > 50)
{
log.Warning("Length > 50 - truncated");
URL = URL.Substring(0,50);
}
Set_Value ("URL", URL);
}
/** Get URL.
@return Full URL address - e.g. http://www.viennaadvantage.com */
public String GetURL() 
{
return (String)Get_Value("URL");
}
/** Set UniCodeValue.
@param UniCodeValue UniCodeValue */
public void SetUniCodeValue (String UniCodeValue)
{
if (UniCodeValue != null && UniCodeValue.Length > 50)
{
log.Warning("Length > 50 - truncated");
UniCodeValue = UniCodeValue.Substring(0,50);
}
Set_Value ("UniCodeValue", UniCodeValue);
}
/** Get UniCodeValue.
@return UniCodeValue */
public String GetUniCodeValue() 
{
return (String)Get_Value("UniCodeValue");
}
/** Set UserKeyWord.
@param UserKeyWord UserKeyWord */
public void SetUserKeyWord (String UserKeyWord)
{
if (UserKeyWord != null && UserKeyWord.Length > 50)
{
log.Warning("Length > 50 - truncated");
UserKeyWord = UserKeyWord.Substring(0,50);
}
Set_Value ("UserKeyWord", UserKeyWord);
}
/** Get UserKeyWord.
@return UserKeyWord */
public String GetUserKeyWord() 
{
return (String)Get_Value("UserKeyWord");
}
/** Set Registered EMail.
@param UserName Email of the responsible for the System */
public void SetUserName (String UserName)
{
if (UserName != null && UserName.Length > 50)
{
log.Warning("Length > 50 - truncated");
UserName = UserName.Substring(0,50);
}
Set_Value ("UserName", UserName);
}
/** Get Registered EMail.
@return Email of the responsible for the System */
public String GetUserName() 
{
return (String)Get_Value("UserName");
}
/** Set dndKeyWord.
@param dndKeyWord dndKeyWord */
public void SetdndKeyWord (String dndKeyWord)
{
if (dndKeyWord != null && dndKeyWord.Length > 50)
{
log.Warning("Length > 50 - truncated");
dndKeyWord = dndKeyWord.Substring(0,50);
}
Set_Value ("dndKeyWord", dndKeyWord);
}
/** Get dndKeyWord.
@return dndKeyWord */
public String GetdndKeyWord() 
{
return (String)Get_Value("dndKeyWord");
}
/** Set dndValue.
@param dndValue dndValue */
public void SetdndValue (String dndValue)
{
if (dndValue != null && dndValue.Length > 50)
{
log.Warning("Length > 50 - truncated");
dndValue = dndValue.Substring(0,50);
}
Set_Value ("dndValue", dndValue);
}
/** Get dndValue.
@return dndValue */
public String GetdndValue() 
{
return (String)Get_Value("dndValue");
}
/** Set unicodeKeyWord.
@param unicodeKeyWord unicodeKeyWord */
public void SetunicodeKeyWord (String unicodeKeyWord)
{
if (unicodeKeyWord != null && unicodeKeyWord.Length > 50)
{
log.Warning("Length > 50 - truncated");
unicodeKeyWord = unicodeKeyWord.Substring(0,50);
}
Set_Value ("unicodeKeyWord", unicodeKeyWord);
}
/** Get unicodeKeyWord.
@return unicodeKeyWord */
public String GetunicodeKeyWord() 
{
return (String)Get_Value("unicodeKeyWord");
}
}

}
